Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BC Break] Add support for Symfony 6 (from @Slamdunk) #418

Merged
merged 3 commits into from
Feb 23, 2022

Conversation

asgrim
Copy link
Member

@asgrim asgrim commented Feb 23, 2022

Fixes #416 #413

The isolated BC breaks in this PR are as follows:

 - [BC] BrowscapPHP\Command\UpdateCommand was marked "@internal"
 - [BC] BrowscapPHP\Command\FetchCommand was marked "@internal"
 - [BC] BrowscapPHP\Command\ConvertCommand was marked "@internal"
 - [BC] BrowscapPHP\Command\CheckUpdateCommand was marked "@internal"
 - [BC] BrowscapPHP\Command\ParserCommand was marked "@internal"
 - [BC] BrowscapPHP\Helper\Filesystem was marked "@internal"

These BC breaks are necessary to prevent upstream Symfony BC breaks leaking into our own API. I did NOT mark these classes as final (although ideally they should be, perhaps we can do that in a future release), but this means we will no longer support BC in any of these classes. Downstream consumers should not extend these @internal classes any more, and will receive an error if they are extending them in turn and using Roave/BackwardsCompatibilityCheck.

composer.json Show resolved Hide resolved
@asgrim asgrim mentioned this pull request Feb 23, 2022
… guarantee against upstream BC breaks when supporting multiple Symfony major versions
@asgrim asgrim modified the milestones: 6.2.0, 7.0.0 Feb 23, 2022
@codecov-commenter
Copy link

codecov-commenter commented Feb 23, 2022

Codecov Report

Merging #418 (7a62648) into 6.2.x (af6d7b0) will decrease coverage by 1.63%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##              6.2.x     #418      +/-   ##
============================================
- Coverage     39.28%   37.64%   -1.64%     
  Complexity      283      283              
============================================
  Files            27       27              
  Lines           919      842      -77     
============================================
- Hits            361      317      -44     
+ Misses          558      525      -33     
Flag Coverage Δ
7.4 37.64% <ø> (-1.64%) ⬇️
php-7.4 37.64% <ø> (-1.64%) ⬇️
phpunit 37.64% <ø> (-1.64%) ⬇️
ubuntu-20.04 37.64% <ø> (-1.64%) ⬇️
xdebug 37.64% <ø> (-1.64%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/Command/CheckUpdateCommand.php 6.25% <ø> (-12.67%) ⬇️
src/Command/ConvertCommand.php 7.50% <ø> (-13.78%) ⬇️
src/Command/FetchCommand.php 10.25% <ø> (-18.32%) ⬇️
src/Command/ParserCommand.php 8.00% <ø> (-20.13%) ⬇️
src/Command/UpdateCommand.php 10.00% <ø> (-22.50%) ⬇️
src/Helper/Filesystem.php 0.00% <ø> (ø)
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update af6d7b0...7a62648. Read the comment docs.

@asgrim asgrim changed the title Slamdunk symfony 6 Add support for Symfony 6 (from @Slamdunk) Feb 23, 2022
@asgrim asgrim changed the base branch from 6.2.x to 7.0.x February 23, 2022 09:13
@asgrim asgrim changed the title Add support for Symfony 6 (from @Slamdunk) [BC Break] Add support for Symfony 6 (from @Slamdunk) Feb 23, 2022
@asgrim asgrim merged commit 81f1ff4 into 7.0.x Feb 23, 2022
@asgrim asgrim deleted the Slamdunk-symfony_6 branch February 23, 2022 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update symfony/console to 6.x.
3 participants